﻿@model Zen.BlackBerry.Web.Models.ApplicationModel

@{
	ViewBag.Title = "Create Push Application";
}

<h2>Create</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Push Application Details</legend>

		@Html.HiddenFor(model => model.Id)

        <div class="editor-label">
            @Html.LabelFor(model => model.Name)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Name)
            @Html.ValidationMessageFor(model => model.Name)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Description)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Description)
            @Html.ValidationMessageFor(model => model.Description)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Version)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Version)
            @Html.ValidationMessageFor(model => model.Version)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.CreatedDate)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.CreatedDate)
            @Html.ValidationMessageFor(model => model.CreatedDate)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.LastUpdateDate)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.LastUpdateDate)
            @Html.ValidationMessageFor(model => model.LastUpdateDate)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.LastUpdateBy)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.LastUpdateBy)
            @Html.ValidationMessageFor(model => model.LastUpdateBy)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.StartDate)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.StartDate)
            @Html.ValidationMessageFor(model => model.StartDate)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ExpiryDate)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ExpiryDate)
            @Html.ValidationMessageFor(model => model.ExpiryDate)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ApplicationId)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ApplicationId)
            @Html.ValidationMessageFor(model => model.ApplicationId)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.PushPort)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PushPort)
            @Html.ValidationMessageFor(model => model.PushPort)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.UserName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.UserName)
            @Html.ValidationMessageFor(model => model.UserName)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.PublicPassword)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PublicPassword)
            @Html.ValidationMessageFor(model => model.PublicPassword)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.PublicNotificationUrl)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PublicNotificationUrl)
            @Html.ValidationMessageFor(model => model.PublicNotificationUrl)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.EnterprisePassword)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.EnterprisePassword)
            @Html.ValidationMessageFor(model => model.EnterprisePassword)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.EnterpriseNotificationUrl)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.EnterpriseNotificationUrl)
            @Html.ValidationMessageFor(model => model.EnterpriseNotificationUrl)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.MaximumDailyPushes)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.MaximumDailyPushes)
            @Html.ValidationMessageFor(model => model.MaximumDailyPushes)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.DefaultPushTtl)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.DefaultPushTtl)
            @Html.ValidationMessageFor(model => model.DefaultPushTtl)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.IsDisabled)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.IsDisabled)
            @Html.ValidationMessageFor(model => model.IsDisabled)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.IsReliable)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.IsReliable)
            @Html.ValidationMessageFor(model => model.IsReliable)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.IsStoringRequests)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.IsStoringRequests)
            @Html.ValidationMessageFor(model => model.IsStoringRequests)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.IsLastNotificationEnabled)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.IsLastNotificationEnabled)
            @Html.ValidationMessageFor(model => model.IsLastNotificationEnabled)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.AutoDeleteRequests)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.AutoDeleteRequests)
            @Html.ValidationMessageFor(model => model.AutoDeleteRequests)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.BypassSubscriptions)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.BypassSubscriptions)
            @Html.ValidationMessageFor(model => model.BypassSubscriptions)
        </div>

        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
